extends HBoxContainer


var data 

signal edit(data)
signal delete(data)

func _ready():
	pass # Replace with function body.



func set_data(data):
	self.data = data
	$name.text = "【%s】战斗:%s" % [data["id"], data["name"]]



func _on_name_button_up():
	emit_signal("edit", data)


func _on_del_button_up():
	emit_signal("delete", data)
